//
//  UserTask.h
//  XNet
//
//  Created by easystudio on 6/27/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserTaskDelegate.h"
#import "Type.h"

@interface UserTask : NSObject {
    NSObject <UserTaskDelegate> *_oDelegate;
    NSString* _sTaskType;
    NSThread* _oThread;
}
@property (nonatomic, retain) NSString* _sTaskType;

-(void) setDelegate:(NSObject <UserTaskDelegate>*) delegate;
-(id) InitWithType:(NSString*) type Delegate:(NSObject*) delegate;
-(void) Excute;
-(BOOL) isRunning;
-(void) cancel;
@end
